using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace jSLCore.Client.Presentation.Controls
{
    public class ImageHeader : Control
    {
        public ImageHeader()
        {
            DefaultStyleKey = typeof (ImageHeader);
            /*Resources.MergedDictionaries.Add(
                new ResourceDictionary()
                    {
                        Source = new Uri(
@"/jSLCore.Client.Presentation.Wpf;component/Themes/Generic.xaml"
, UriKind.Absolute)
                    });*/

            IsTabStop = false; 
        }

        #region DependencyProperties
        public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register("Header", typeof(string),
                                                                                              typeof(ImageHeader),
                                                                                               null);
        public string Header
        {
            get { return (string)GetValue(HeaderProperty); }
            set { SetValue(HeaderProperty, value); }
        }

        public static DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(ImageSource),
                                                                                     typeof(ImageHeader), null);
        public ImageSource Image
        {
            get { return (ImageSource)GetValue(ImageProperty); }
            set { SetValue(ImageProperty, value); }
        }

        
        public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register("CornerRadius",
                                                                                                     typeof(CornerRadius),
                                                                                                     typeof(
                                                                                                         ImageHeader
                                                                                                         ), null);
        public CornerRadius CornerRadius
        {
            get { return (CornerRadius)GetValue(CornerRadiusProperty); }
            set { SetValue(CornerRadiusProperty, value); }
        }
        
        #endregion
    }
}